import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/global.css'
import axios from 'axios'




Vue.config.productionTip = false
// // 添加请求过滤器
// axios.interceptors.request.use(config => {
//   config.headers.authorization = window.sessionStorage.getItem("token");
//   return config;
// })
//把axios挂载到Vue上面
axios.interceptors.response.use(function (res) {
  return res.data;
}, function (err) {
  console.log(err)
});
Vue.prototype.$http = axios;
axios.defaults.baseURL = "http://127.0.0.1:8090/"


new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
